package com.lck.blogmanager.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.lck.blogmanager.common.BasePageReq;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @author wyq
 * @version v1.0.0
 * @explain
 * @date 2024/4/9 9:21
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
public class PageBlogReq extends BasePageReq {

    /**
     * 标题
     */
    private String total;

    /**
     * 状态 0提交 1审核通过 2审核失败
     */
    private Integer status;

    /**
     * 标签
     */
    private Integer tagId;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;


    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

}
